{template 'web/common/common'}
{template 'web/land/navbar'}
<link rel="stylesheet" type="text/css" href="../addons/kundian_farm/resource/css/style.css" />
<style>
    .col-sm-8 span{top: 6px;
        position: relative;margin-right:5px;}
</style>
<div class="panel panel-success">
    <div class="panel-heading">
        <h3 class="panel-title">
            种植详情查看
        </h3>
    </div>
    <div class="panel-body">
        <form id="sign-form" class="form-horizontal" role="form" method="post" action="{url 'site/entry/send',array('m'=>'kundian_farm','op'=>'save_web_did','version_id'=>$_GPC['version_id'])}" name="submit" style="padding: 20px 0;">
            <div class="form-group">
                <label class="col-sm-1 control-label">土地名称：</label>
                <div class="col-sm-8">
                    <span>{$land['land_name']}</span>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-1 control-label">种植用户昵称：</label>
                <div class="col-sm-8">
                    <span>{$user['nickname']}（{$landOrder['username']}）</span>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-1 control-label">租赁面积：</label>
                <div class="col-sm-8">
                    <span>{$landMime['count']} ㎡</span>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-1 control-label">租赁天数：</label>
                <div class="col-sm-8">
                    <span>{$landMime['day']} 天</span>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-1 control-label">到期时间：</label>
                <div class="col-sm-8">
                    <span>{$landMime['exprie_time']}</span>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-1 control-label">种植作物：</label>
                <div class="col-sm-8">
                    {if $send_mine}
                    {loop $send_mine $index $item}
                    <span class="label label-info">{$item['send_name']}</span>
                    {/loop}
                    {else}
                    <span>暂未种植任何植物</span>
                    {/if}
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-1 control-label">物联网设备号</label>
                <div class="col-sm-2">
                    <input type="text" class="form-control" placeholder="物联网设备号" name="web_did" value="{$landMime['web_did']}">
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-offset-1 col-sm-10">
                    <input type="hidden" name="id" value="{$id}">
                    <button type="submit" class="btn btn-success">保存</button>
                    <a class="btn btn-default" href="{url 'site/entry/send',array('m'=>'kundian_farm','op'=>'send_plant')}">返回</a>
                </div>
            </div>
        </form>
    </div>
</div>
